package com.punai.customer.mapper;

import com.punai.common.core.mapper.CommonMapper;
import com.punai.customer.domain.CusLinkSubpkConsumeAddress;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 标准费用项材机耗量地区Mapper接口
 *
 * @author zhx
 * @date 2023-02-02
 */
public interface CusLinkSubpkConsumeAddressMapper extends CommonMapper<CusLinkSubpkConsumeAddress>
{
    /**
     * 查询标准费用项材机耗量地区
     *
     * @param id 标准费用项材机耗量地区主键
     * @return 标准费用项材机耗量地区
     */
    public CusLinkSubpkConsumeAddress selectCusLinkSubpkConsumeAddressById(String id);

    /**
     * 查询标准费用项材机耗量地区列表
     *
     * @param cusLinkSubpkConsumeAddress 标准费用项材机耗量地区
     * @return 标准费用项材机耗量地区集合
     */
    public List<CusLinkSubpkConsumeAddress> selectCusLinkSubpkConsumeAddressList(CusLinkSubpkConsumeAddress cusLinkSubpkConsumeAddress);


    /**
     * 删除标准费用项材机耗量地区
     *
     * @param id 标准费用项材机耗量地区主键
     * @return 结果
     */
    public int deleteCusLinkSubpkConsumeAddressById(String id);

    /**
     * 批量删除标准费用项材机耗量地区
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCusLinkSubpkConsumeAddressByIds(String[] ids);

    public List<String> selectAddressList(@Param("companyId") Long companyId,@Param("specId") String specId);
}
